
package proyecto;

import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import javax.swing.border.TitledBorder;

public class Ventana extends JFrame{

    private JPanel pnlResp;
    private JCheckBox chk;
    private JTextField txtCorrectas;
    
    Ventana() {
//        this.setSize(400, 400);
//        this.setVisible(true);
//        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//        this.setLayout(new GridBagLayout());
//        //this.setLayout(new BorderLayout());
//        GridBagConstraints grid = new GridBagConstraints();
//        grid.fill = GridBagConstraints.BOTH;
//        this.add(cuestionario = new JTabbedPane());
//        //------------agrego pestana Titulo/Indicaciones
//        cuestionario.add("Titulo/Indicaciones",indic = new JPanel());
//            //-------agrego elementos 
//        indic.setLayout(new BoxLayout(indic, BoxLayout.Y_AXIS));
//        //indic.setLayout(new GridBagLayout());
//        indic.add(lblTit = new JLabel("TITULO"));
//        indic.add(txtTit = new JTextField(20));
//        indic.add(lblIndic = new JLabel("INDICACIONES"));
//        indic.add(txtIndic = new JTextField(20));
//        indic.add(btnGuardar = new JButton("Guardar"));
//        //-----------agrego pestana Preguntas
//        cuestionario.add("Preguntas", preg = new JPanel());
//            //-----agrego elementos
//        preg.setLayout(new BoxLayout(preg, BoxLayout.Y_AXIS));
//        //preg.add(lblNumPreg = new JLabel("Num. Pregunta"));
//        //preg.add(spPreg = new JSpinner());
//        preg.add(lblPreg = new JLabel("Pregunta"));
//        preg.add(txtPreg = new JTextField(20));
//        preg.add(lblTipo = new JLabel("Escoja el Tipo"));
//        preg.add(cboTipo = new JComboBox()); 
//        preg.add(btnGuardarPreg = new JButton("Guardar"));
//        
//        //-----------agrego pestana Respuestas
//        cuestionario.add("Respuestas", resp = new JPanel());
//        resp.setLayout(new GridBagLayout());
//        GridBagConstraints grid1 = new GridBagConstraints();
//        grid1.gridx = 0; grid1.gridy = 0; 
//        grid1.gridheight = 1; grid1.gridwidth = 1;
//        
//        //----------agrego pestana Cuestionario
//        cuestionario.add("Cuestionario", cuest = new JPanel());
        //pnlRespuestas.setLayout(null);
        pnlResp = new JPanel();
        //pnlResp.setBounds(10, 20, 570, 60);
        pnlResp.setBorder(new TitledBorder("Opcion"));
        pnlResp.setLayout(null);
        chk = new JCheckBox();
        chk.setBounds(10, 20, 100, 30);
        pnlResp.add(chk);
        txtCorrectas = new JTextField(10);
        txtCorrectas.setBounds(110, 20, 200, 30);
        pnlResp.add(txtCorrectas);
        
    }
    
//    @Override
//    public void actionPerformed(ActionEvent e) {
//        throw new UnsupportedOperationException("Not supported yet.");
//    }
    
}
